#include <iostream>

template<typename... packs>
void print(packs... value) {
    ((std::cout << value << " "), ...);
}

int main() {
    print(1, 2, 3, 4, 5, 6);
}